package com.yuliang.day2;


import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component("book")
public class Book {

    @Value("hello world")
    public String name;

    public void save(){
        System.out.println("hello "+name);
    }

}
